package com.shanshan.system.controller;

import com.shanshan.system.service.EchartsService;
import com.shanshan.system.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author keluoyisi
 * @program: shanshan
 * @description:
 * @date 2023-02-14 20:10:50
 */
@RestController
@RequestMapping("/echarts")
public class EchartsController {
    @Autowired
    private EchartsService echartsService;

    @GetMapping("/record")
    public Result record(){
        return new Result(200,"查询成功",echartsService.getRecord());
    }

    @GetMapping("/getBranch")
    public Result getBranch(){
        return new Result(200,"查询成功",echartsService.getBranch());
    }
}
